package cn.rumoss.jvm.deep.oom;

import java.util.ArrayList;
import java.util.List;

/**
 * -XX:PermSize=10M -XX:MaxPermSize=10M 对jdk8不起作用
 * OpenJDK 64-Bit Server VM warning: ignoring option PermSize=10M; support was removed in 8.0
 * OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=10M; support was removed in 8.0
 * -Xmx10m -Xms10m -XX:-UseGCOverheadLimit
 * @author xiaotang
 *
 */
public class RuntimeConstantPoolOOM {

	public static void main(String[] args) {

		List<String> list = new ArrayList<String>();
		int i = 0;
		while(true) {
			list.add(String.valueOf(i++).intern());
		}
		
	}

}
